﻿<%@ Control Language="C#" Inherits="Yuanlin.Business.CompanyMessageEditControl, Yuanlin.Business" AutoEventWireup="true" %>

<%@Register tagPrefix="ctrl" tagName="Editor" src="~/themes/default/skins/Skin-HtmlEditor.ascx" %>
<script type="text/javascript">
addEvent(window, 'load', setEditor);
function setEditor()
{
     var content = window.frames['Editor'].window.frames["HtmlEditor"].document.getElementsByTagName("BODY")[0];
     content.disabled=true;
}

</script>
<div class="AdminArea">
    <fieldset>
        <legend><nwap:ResourceLiteral runat="server" ResourceName="System_Applications_Yuanlin_EditCompanyMessage" ResourceFile="ControlPanelResources.xml"></nwap:ResourceLiteral></legend>

        <div id="divHidden" runat="server">
            <div class="FormRow">
                <nwap:ResourceLabel CssClass="FieldName" runat="Server" ControlToLabel="visitorNameValuedTextBox" ResourceFile="ControlPanelResources.xml" ResourceName="System_Applications_Yuanlin_CompanyMessage_VisitorName" />
                <nwap:ValuedTextBox Runat="server" CssClass="InputField" Width="81.7%" id="visitorNameValuedTextBox" Enabled="false"/>
            </div>
            <div class="FormRow">
                <nwap:ResourceLabel CssClass="FieldName" runat="Server" ControlToLabel="contactValuedTextBox" ResourceFile="ControlPanelResources.xml" ResourceName="System_Applications_Yuanlin_CompanyMessage_Contact" />
                <nwap:ValuedTextBox Runat="server" CssClass="InputField" Width="81.7%" id="contactValuedTextBox"  Enabled="false"/>
            </div>
            <div class="FormRow">
                <nwap:ResourceLabel ID="ResourceLabel1" CssClass="FieldName" runat="Server" ControlToLabel="greenNumberValuedTextBox" ResourceFile="ControlPanelResources.xml" ResourceName="System_Applications_Yuanlin_CompanyMessage_GreenNumber" />
                <nwap:ValuedTextBox Runat="server" CssClass="InputField" Width="81.7%" id="greenNumberValuedTextBox"  Enabled="false"/>
            </div>
            <div class="FormRow">
                <nwap:ResourceLabel CssClass="FieldName" runat="Server" ControlToLabel="addressValuedTextBox" ResourceFile="ControlPanelResources.xml" ResourceName="System_Applications_Yuanlin_CompanyMessage_Address" />
                <nwap:ValuedTextBox Runat="server" CssClass="InputField" Width="81.7%" id="addressValuedTextBox"  Enabled="false"/>
            </div>
        </div>
        <div class="FormRow">
            <nwap:ResourceLabel CssClass="FieldName" runat="Server" ControlToLabel="bodyValuedEditor" ResourceFile="ControlPanelResources.xml" ResourceName="System_Applications_Yuanlin_CompanyMessage_Body" />
            <br /><br /><ctrl:Editor Runat="server" Width="100%" Height="250px" id="descriptionValuedEditor" />
        </div>

        <div class="FormRow SubmitButtonRow">
            <nwap:Resourcebutton id="BackButton" ResourceName="Back" CssClass="Button" Runat="server"></nwap:Resourcebutton>
        </div>	
    </fieldset>
</div> 